package com.yzh.homework.homework01;

/**
 * @author 于振晗
 * @title: PCI
 * @description: TODO PCI接口
 * @date 2020年08月28日
 * @path com.yzh.homework.homework01
 */
public interface PCI {
    void send();
}


class NetCard implements PCI{
    @Override
    public void send() {
        System.out.println("网卡发送数据");
    }
}

class AudioCard implements PCI{
    @Override
    public void send() {
        System.out.println("声卡发送数据");
    }
}

class VideaCard implements PCI{
    @Override
    public void send() {
        System.out.println("显卡发送数据");
    }
}

class Test {
    public static void main(String[] args) {
        PCI pc1 = new AudioCard();
        pc1.send();
        PCI pc2 = new NetCard();
        pc2.send();
        PCI pc3 = new VideaCard();
        pc3.send();
    }
}
